<?php 
$zebra=0;
if ($dep_data->num_rows() > 0):
	foreach($dep_data->result_array() as $ch):
?>
	<tr <?php if ($zebra++%2==1):?> class="zebra" <?php endif?> 
		onmouseover="$(this).getElements('input[class:buttonSmall]').setStyle('visibility','visible')"
		onmouseout="$(this).getElements('input[class:buttonSmall]').setStyle('visibility','hidden')">
	<td width="150"><?php echo $ch['dep_id']?></td>
	<td><?php echo $ch['dep_nama']?></td>
	<td align="right" width="10%">
		<input class="buttonSmall" type="button" style="font-size: 14px; visibility:hidden;" value="!" onclick="do_edit('<?php echo $ch['dep_id']?>')" />
		<input class="buttonSmall" type="button" style="font-size: 14px; visibility:hidden;" value="-" onclick="FBModal_confirm(APP.base+'/ajax/confirmDialog', 'Delete', 'Hapus record ?', 'do_delete($(this), \'<?php echo $ch['dep_id']?>\')')" />
	</td>
	</tr>
<?php 
	endforeach;
else:
?><tr><td align="center" colspan="2">Tidak ada data</td></tr><?php 
endif;